Skip to content

fix: use GORELEASER_CURRENT_TAG for RC release detection#26

Merged
pjcdawkins merged 3 commits intomainfrom
cli-114-fix-cloudsmith-execution-on-release-candidate-releases
Mar 12, 2026
Merged

fix: use GORELEASER_CURRENT_TAG for RC release detection#26
pjcdawkins merged 3 commits intomainfrom
cli-114-fix-cloudsmith-execution-on-release-candidate-releases

Conversation

@miguelsanchez-upsun
Copy link
Contributor

Summary

Fixes RC release builds by ensuring the Makefile correctly detects pre-release versions and skips Cloudsmith uploads.

Changes

  • Updated Makefile to use GORELEASER_CURRENT_TAG (set by GitHub Actions) instead of git describe --always, which was returning commit hashes instead of tag
    names in shallow checkouts
  • Added shebang and error handling to cloudsmith.sh for safety

Result

RC releases (e.g., v5.10.0-rc1) now properly skip Cloudsmith uploads instead of failing when attempting to run the upload script.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@miguelsanchez-upsun miguelsanchez-upsun marked this pull request as ready for review March 12, 2026 13:57
Copilot AI review requested due to automatic review settings March 12, 2026 13:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes release/RC detection in CI by sourcing the version from GORELEASER_CURRENT_TAG (provided by GitHub Actions) instead of relying on git describe in shallow checkouts, and tightens the Cloudsmith upload script’s shell safety settings.

Changes:

  • Update Makefile version resolution to prefer GORELEASER_CURRENT_TAG, with a git-based fallback.
  • Add a bash shebang and strict-mode error handling (set -euo pipefail) to cloudsmith.sh.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
Makefile Adjusts how VERSION is derived to avoid shallow-checkout git describe pitfalls and improve RC detection behavior.
cloudsmith.sh Adds bash strict mode to make Cloudsmith uploads fail fast on errors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

pjcdawkins and others added 2 commits March 12, 2026 14:39
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@pjcdawkins pjcdawkins merged commit 0e7be65 into main Mar 12, 2026
4 checks passed
@pjcdawkins pjcdawkins deleted the cli-114-fix-cloudsmith-execution-on-release-candidate-releases branch March 12, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants